export interface ReqOptions {
  data?: any,
  params?: any,
  noToken?: boolean,
  pure?: boolean,
  headers?: Record<string, string>,
  silent?: boolean
}
export type Req = (method: 'post' | 'get' | 'delete' | 'put', url: string, options?: ReqOptions) => Promise<any>

export async function reqPure(req: Req, url: string) {
  return req('get', url, { noToken: true, pure: true })
}